package com.ruoyi.web.admin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.admin.mapper.TdmCmcWenXianMapper;
import com.ruoyi.web.admin.domain.TdmCmcWenXian;
import com.ruoyi.web.admin.service.ITdmCmcWenXianService;

/**
 * CMC文献分类Service业务层处理
 * 
 * @author ly
 * @date 2022-03-10
 */
@Service
public class TdmCmcWenXianServiceImpl implements ITdmCmcWenXianService 
{
    @Autowired
    private TdmCmcWenXianMapper tdmCmcWenXianMapper;

    /**
     * 查询CMC文献分类
     * 
     * @param id CMC文献分类主键
     * @return CMC文献分类
     */
    @Override
    public TdmCmcWenXian selectTdmCmcWenXianById(Long id)
    {
        return tdmCmcWenXianMapper.selectTdmCmcWenXianById(id);
    }

    /**
     * 查询CMC文献分类列表
     * 
     * @param tdmCmcWenXian CMC文献分类
     * @return CMC文献分类
     */
    @Override
    public List<TdmCmcWenXian> selectTdmCmcWenXianList(TdmCmcWenXian tdmCmcWenXian)
    {
        return tdmCmcWenXianMapper.selectTdmCmcWenXianList(tdmCmcWenXian);
    }

    /**
     * 新增CMC文献分类
     * 
     * @param tdmCmcWenXian CMC文献分类
     * @return 结果
     */
    @Override
    public int insertTdmCmcWenXian(TdmCmcWenXian tdmCmcWenXian)
    {
        return tdmCmcWenXianMapper.insertTdmCmcWenXian(tdmCmcWenXian);
    }

    /**
     * 修改CMC文献分类
     * 
     * @param tdmCmcWenXian CMC文献分类
     * @return 结果
     */
    @Override
    public int updateTdmCmcWenXian(TdmCmcWenXian tdmCmcWenXian)
    {
        return tdmCmcWenXianMapper.updateTdmCmcWenXian(tdmCmcWenXian);
    }

    /**
     * 批量删除CMC文献分类
     * 
     * @param ids 需要删除的CMC文献分类主键
     * @return 结果
     */
    @Override
    public int deleteTdmCmcWenXianByIds(Long[] ids)
    {
        return tdmCmcWenXianMapper.deleteTdmCmcWenXianByIds(ids);
    }

    /**
     * 删除CMC文献分类信息
     * 
     * @param id CMC文献分类主键
     * @return 结果
     */
    @Override
    public int deleteTdmCmcWenXianById(Long id)
    {
        return tdmCmcWenXianMapper.deleteTdmCmcWenXianById(id);
    }
}
